class FestivalListModel {
  bool? success;
  int? code;
  String? message;
  List<FestivalItemModel>? data;

  FestivalListModel({this.success, this.code, this.message, this.data});

  FestivalListModel.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    code = json['code'];
    message = json['message'];
    if (json['data'] != null) {
      data = <FestivalItemModel>[];
      json['data'].forEach((v) {
        data!.add(FestivalItemModel.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['success'] = success;
    data['code'] = code;
    data['message'] = message;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class FestivalItemModel {
  String? heath;
  String? pubDate;
  String? des;
  String? pubYear;
  String? priDate;
  String? pubTime;
  String? name;
  String? youLai;
  String? xiSu;

  FestivalItemModel(
      {this.heath,
        this.pubDate,
        this.des,
        this.pubYear,
        this.priDate,
        this.pubTime,
        this.name,
        this.youLai,
        this.xiSu});

  FestivalItemModel.fromJson(Map<String, dynamic> json) {
    heath = json['heath'];
    pubDate = json['pub_date'];
    des = json['des'];
    pubYear = json['pub_year'];
    priDate = json['pri_date'];
    pubTime = json['pub_time'];
    name = json['name'];
    youLai = json['youLai'];
    xiSu = json['xiSu'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['heath'] = heath;
    data['pub_date'] = pubDate;
    data['des'] = des;
    data['pub_year'] = pubYear;
    data['pri_date'] = priDate;
    data['pub_time'] = pubTime;
    data['name'] = name;
    data['youLai'] = youLai;
    data['xiSu'] = xiSu;
    return data;
  }
}
